﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StockPro
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            var g = e.Graphics;
            var pen = new Pen(Color.White, 1);
            //g.DrawLine(pen, new Point(0, 10), new Point(1000, 10));
            var deltaH = this.Height / 14;
            for (int i = 1; i < 14; i++)
            {
                g.DrawLine(pen, new Point(groupBox1.Location.X, groupBox1.Location.Y + deltaH * i), new Point(groupBox1.Location.X + groupBox1.Width, groupBox1.Location.Y + deltaH * i));
            }
            
        }

        private void groupBox1_Paint(object sender, PaintEventArgs e)
        {
            var g = e.Graphics;
            var pen = new Pen(Color.White, 1);
            //g.DrawLine(pen, new Point(0, 10), new Point(1000, 10));
            var deltaH = this.Height / 14;
            for (int i = 1; i < 14; i++)
            {
                g.DrawLine(pen, new Point(groupBox1.Location.X, groupBox1.Location.Y + deltaH * i), new Point(groupBox1.Location.X + groupBox1.Width, groupBox1.Location.Y + deltaH * i));
            }
        }
    }
}
